package com.hjj.java.se.objectRep;

import com.thoughtworks.xstream.XStream;

public class XMLMain {
    public static void main(String[] args) {
        XStream xStream = new XStream();
        XMLObject xmlObject = new XMLObject(10, 10.5, "1234545667");
//        xStream.alias("XMLObject", XMLObject.class);
//        xStream.aliasField("Count", XMLObject.class, "count");
//        xStream.aliasField("Price", XMLObject.class, "price");
//        xStream.aliasField("Phone", XMLObject.class, "phone");
        String xmlObjectStr = xStream.toXML(xmlObject);
        System.out.println(xmlObjectStr);
    }
}
